#include<signal.h>
#include<stdio.h>
#include<unistd.h>

void ouch(int sig)
{
	printf("OUCH! - I got singal %d\n", sig);
}

int main(void)
{
	struct sigaction act;

	act.sa_handler = ouch;
	sigemptyset(&act.sa_mask);
	act.sa_flags = 0;

	sigaction(SIGINT, &act, NULL);

	while (1)
	{
		printf("Hello World!\n");
		sleep(1);
	}
}
